package com.blank.web.service;

import com.blank.web.bean.UserBean;
import com.blank.web.dao.UserDao;
import com.blank.web.factory.UserDaoFactory;

public class UserService {
    //合成复用原则
    private UserDao userDao;

    public UserService(){
        this.userDao = UserDaoFactory.getUserDao();
    }

    /**
     * 自定义成员方法实现根据指定参数的user对象来调用Dao层来实现登录功能
     */

    public UserBean userLogin(UserBean user){
        return userDao.userLogin(user);
    }

}
